<HTML>
<HEAD>
<title>QueueLong.Node.SERIALIZER - </title>
<link rel="stylesheet" href="../../../../style.css">
</HEAD>
<BODY>
<a href="../../../index.html">org.mapdb</a>&nbsp;/&nbsp;<a href="../../index.html">QueueLong</a>&nbsp;/&nbsp;<a href="../index.html">Node</a>&nbsp;/&nbsp;<a href=".">SERIALIZER</a><br/>
<br/>
<h1>SERIALIZER</h1>
<code><span class="keyword">object </span><span class="identifier">SERIALIZER</span>&nbsp;<span class="symbol">:</span>&nbsp;<a href="../../../-serializer/index.html"><span class="identifier">Serializer</span></a><span class="symbol">&lt;</span><a href="../index.html"><span class="identifier">Node</span></a><span class="symbol">&gt;</span></code><br/>
<br/>
<br/>
<h3>Functions</h3>
<table>
<tbody>
<tr>
<td>
<a href="deserialize.html">deserialize</a></td>
<td>
<code><span class="keyword">fun </span><span class="identifier">deserialize</span><span class="symbol">(</span><span class="identifier" id="org.mapdb.QueueLong.Node.SERIALIZER$deserialize(org.mapdb.DataInput2, kotlin.Int)/input">input</span><span class="symbol">:</span>&nbsp;<a href="../../../-data-input2/index.html"><span class="identifier">DataInput2</span></a><span class="symbol">, </span><span class="identifier" id="org.mapdb.QueueLong.Node.SERIALIZER$deserialize(org.mapdb.DataInput2, kotlin.Int)/available">available</span><span class="symbol">:</span>&nbsp;<span class="identifier">Int</span><span class="symbol">)</span><span class="symbol">: </span><a href="../index.html"><span class="identifier">Node</span></a><span class="symbol">?</span></code></td>
</tr>
<tr>
<td>
<a href="serialize.html">serialize</a></td>
<td>
<code><span class="keyword">fun </span><span class="identifier">serialize</span><span class="symbol">(</span><span class="identifier" id="org.mapdb.QueueLong.Node.SERIALIZER$serialize(org.mapdb.DataOutput2, org.mapdb.QueueLong.Node)/out">out</span><span class="symbol">:</span>&nbsp;<a href="../../../-data-output2/index.html"><span class="identifier">DataOutput2</span></a><span class="symbol">, </span><span class="identifier" id="org.mapdb.QueueLong.Node.SERIALIZER$serialize(org.mapdb.DataOutput2, org.mapdb.QueueLong.Node)/value">value</span><span class="symbol">:</span>&nbsp;<a href="../index.html"><span class="identifier">Node</span></a><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Unit</span></code></td>
</tr>
</tbody>
</table>
<h3>Inherited Functions</h3>
<table>
<tbody>
<tr>
<td>
<a href="../../../-serializer/deserialize-from-long.html">deserializeFromLong</a></td>
<td>
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">deserializeFromLong</span><span class="symbol">(</span><span class="identifier" id="org.mapdb.Serializer$deserializeFromLong(kotlin.Long, kotlin.Int)/input">input</span><span class="symbol">:</span>&nbsp;<span class="identifier">Long</span><span class="symbol">, </span><span class="identifier" id="org.mapdb.Serializer$deserializeFromLong(kotlin.Long, kotlin.Int)/available">available</span><span class="symbol">:</span>&nbsp;<span class="identifier">Int</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">A</span></code><p>Deserializes and returns the content of the given long. </p>
</td>
</tr>
<tr>
<td>
<a href="../../../-serializer/fixed-size.html">fixedSize</a></td>
<td>
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">fixedSize</span><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Int</span></code><p>Returns the fixed size of the serialized form in bytes or -1 if the size is not fixed (e.g. for Strings). <p> Some optimizations can be applied to serializers with a fixed size. </p>
</p>
</td>
</tr>
<tr>
<td>
<a href="../../../-serializer/is-trusted.html">isTrusted</a></td>
<td>
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">isTrusted</span><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Boolean</span></code><p>Returns if this Serializer is trusted to always read the same number of bytes as it writes for any given object being serialized/de-serialized. <p> MapDB has a relaxed record size boundary checking. It expects deserializers to read exactly as many bytes as were written during serialization. If a deserializer reads more bytes than it wrote, it might start reading others record data in store. </p>
<p> Some serializers (Kryo) have problems with this. To prevent this, we can not read data directly from a store, but we must copy them into separate <code>byte[]</code> buffers. Thus, zero-copy optimizations are disabled by default, but can be explicitly enabled here by letting this method return <code>true</code>. </p>
<p> This flag indicates if this serializer was 'verified' to read as many bytes as it writes. It should also be much better tested etc. </p>
</p>
</td>
</tr>
<tr>
<td>
<a href="../../../-serializer/needs-available-size-hint.html">needsAvailableSizeHint</a></td>
<td>
<code><span class="keyword">open</span> <span class="keyword">fun </span><span class="identifier">needsAvailableSizeHint</span><span class="symbol">(</span><span class="symbol">)</span><span class="symbol">: </span><span class="identifier">Boolean</span></code><p>TODO: Document this method </p>
</td>
</tr>
</tbody>
</table>
</BODY>
</HTML>
